﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ImagesManager.aspx.cs" Inherits="ImagesManager" Title="Images" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div id="toolbar_box">
                    <div class="t">
                        <div class="t">
                            <div class="t"></div>
                        </div>
                    </div>
                    
                    <div class="m">
                        <div id="toolbar" class="toolbar">
                            <table class="toolbar">
                                <tr>
                                    <td id="toolbar_add" class="button"><a runat="server" id="aAddImages" class="toolbar"><span class="icon-32-new"></span>Thêm</a></td>
                                    <td id="Td1" class="button"><a href="AlbumManager.aspx" class="toolbar"><span class="icon-32-back"></span>Quay lại</a></td>
                                    <td id="toolbar_help" class="button"><a href="#" class="toolbar"><span class="icon-32-help"></span>Trợ giúp</a></td>
                                </tr>
                            </table>
                        </div>
                        <div class="header category">
                            <asp:Literal runat="server" ID="ltAlbumName"></asp:Literal>
                        </div>
                        <div class="clr"></div>
                    </div>
                    
                    <div class="b">
                        <div class="b">
                            <div class="b"></div>
                        </div>
                    </div>
    </div><!--End toolbar_box--------------------------------------------------->

    
    <div id="element-box">
                    <div class="t">
                        <div class="t">
                            <div class="t"></div>
                        </div>
                    </div>
                    
                    <div class="m">                        
                        
                        <div class="image-album">
                            
                            <div class="error" visible="false" id="divError" runat="server">
                                <asp:Literal runat="server" ID="ltError"></asp:Literal>
                            </div>
                            
                            <asp:Repeater runat="server" ID="rpImages" onitemcommand="rpImages_ItemCommand">
                                <ItemTemplate>
                                    <div class="image-one">
                                        <img src="<%# Eval("IMAGE") %>" width="130px;"  height="130px;"/>
                                        <p class="image-p">
                                            <%# Eval("NAME") %>
                                        </p>
                                        <table class="image-table">
                                            <tr>
                                                <td>
                                                    <asp:Button runat="server" ID="btDelete" Text="Xóa" CommandName="DeleteImage" CommandArgument='<%# Eval("ID") %>' OnClientClick="return confirm('Bạn muốn thoát khoải hệ thống ?');" />
                                                </td>
                                                <td>
                                                    <asp:Button runat="server" ID="btUpdate" Text="Sửa" CommandName="UpdateImage" CommandArgument='<%# Eval("ID") %>'/>
                                                </td>
                                                <td>
                                                   <asp:Image runat="server" ID="imgViewIsPublic" ImageUrl="~/App_Themes/Images/menu/icon-16-checkin.png" Visible='<%#(bool)DataBinder.Eval(Container.DataItem, "RECORD_STATUS")%>'/>
                                                <asp:Image runat="server" ID="imgViewIsBlock" ImageUrl="~/App_Themes/Images/menu/icon-16-block-status.png" Visible='<%#!(bool)DataBinder.Eval(Container.DataItem, "RECORD_STATUS")%>'/> 
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>                                                        
                            
                        <div class="clr"></div>
                        </div><!--End Image-Album -->
                        
                    </div>
                    
                    <div class="b">
                        <div class="b">
                            <div class="b"></div>
                        </div>
                    </div>
                </div><!--End element-box--------------------------------------------------->

</asp:Content>

